package com.hf.eagle.domain;

import java.io.Serializable;

import com.ebiz.ssi.domain.BaseDomain;

/**
 * @author Xu,XiaoYuan
 * @version 2011-08-27 02:29
 */
public class SysModule extends BaseDomain implements Serializable, Comparable<SysModule> {

	private static final long serialVersionUID = -1L;

	private Long mod_id;

	private Long par_id;

	private String mod_name;

	private String mod_desc;

	private String mod_url;

	private Integer order_value;

	private Integer is_public;

	private Integer is_del;

	public SysModule() {

	}

	public Long getMod_id() {
		return mod_id;
	}

	public void setMod_id(Long modId) {
		mod_id = modId;
	}

	public Long getPar_id() {
		return par_id;
	}

	public void setPar_id(Long parId) {
		par_id = parId;
	}

	public String getMod_name() {
		return mod_name;
	}

	public void setMod_name(String modName) {
		mod_name = modName;
	}

	public String getMod_desc() {
		return mod_desc;
	}

	public void setMod_desc(String modDesc) {
		mod_desc = modDesc;
	}

	public String getMod_url() {
		return mod_url;
	}

	public void setMod_url(String modUrl) {
		mod_url = modUrl;
	}

	public Integer getOrder_value() {
		return order_value;
	}

	public void setOrder_value(Integer orderValue) {
		order_value = orderValue;
	}

	public Integer getIs_public() {
		return is_public;
	}

	public void setIs_public(Integer isPublic) {
		is_public = isPublic;
	}

	public Integer getIs_del() {
		return is_del;
	}

	public void setIs_del(Integer isDel) {
		is_del = isDel;
	}

	public boolean equals(Object obj) {
		if (obj == null)
			return false;
		else {
			if (obj instanceof SysModule) {
				SysModule sys_module = (SysModule) obj;
				if (sys_module.mod_id == this.mod_id) {
					return true;
				}
			}
		}
		return false;
	}

	public int hashCode() {
		return this.mod_id.intValue();
	}

	public int compareTo(SysModule sm) {
		int result;
		result = this.mod_id > sm.getMod_id() ? 1 : (this.mod_id == sm.getMod_id() ? 0 : -1);

		return result;
	}

}